<?php
include_once(SYSTEM.'/Model.php');
include_once(SYSTEM.'/StringLengthRule.php');
include_once(SYSTEM.'/RequiredRule.php');

class User extends Model
{
	public $UserName;
	public $Password;

	public function __construct($userName, $password)
	{
		$this->AddRules('UserName', new RequiredRule('UserName k duoc de trong'));
		$this->AddRules('UserName', new StringLengthRule(0, 6, 'Do dai chuoi ki tu vuot qua gioi han'));		
		
		$this->UserName = $userName;
		$this->Password = $password;
	}
}